<?php
	include dirname(dirname(__FILE__)).'/admin-verify.php';
	require dirname(__FILE__).'/functions.php';
	$_className=addslashes($_POST['class-name']);
	$params=array(
					'name'=>'"'.$_className.'"'
	);
	if (addClass($params)){
		alertInfo("添加商品类别成功！",getHost().'/admin/user-manage/index.php');
		exit();
		
	}else {
		alertInfo("添加商品类别失败！",getHost().'/admin/user-manage/index.php');
		exit();
		
	}
	
	
?>